#include <bits/stdc++.h>
using namespace std;
#define PI 3.1415926
#define   SQUARE(x) ((x)*(x))
//double SQUARE(double x) { return x*x;}

int main()
{
	int x, y ;
	double x2;
	char c;
	scanf("%d",  &x );

  printf("%d", (x>9 && x <100) ? 1 : 0);

  return 0;
}
